from . import views
from django.urls import re_path

urlpatterns = [
    re_path('^usernames/(?P<username>\w{5,20})/count/$', views.Username.as_view()),
    re_path('^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.Mobile.as_view()),
    re_path('^register/$', views.RegisterView.as_view()),
    # 用户名登录的子路由:
    re_path(r'^login/$', views.LoginView.as_view()),
    # 退出登录
    re_path(r'^logout/$', views.LogoutView.as_view()),
    re_path(r'^register/$', views.RegisterView.as_view()),
    # 用户中心的子路由
    re_path(r'^info/$', views.UserInfoView.as_view()),
]
